home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / cli / reboot.lha / ColdReboot.c < prev    next >
C/C++ Source or Header  |  1994-11-21  |  1KB  |  28 lines

  1. /**********************************************************************/
  2. /*  MF WBTools  reboot.c   - perform an immediate cold reboot         */
  3. /*                                                                    */
  4. /*  USAGE:  ColdReboot     - Reboots without confirmation             */
  5. /*                                                                    */
  6. /*  13/03/1994  Max Francis                                           */
  7. /**********************************************************************/
  8.  
  9. #include <exec/exec.h>
  10. #include <stdio.h>
  11.  
  12. /* Formatted version string for the 2.0 VERSION command */ 
  13. UBYTE *vers = "\0$VER: MF Reboot v1.5";
  14.  
  15. main( int argc, char *argv[] )
  16. {
  17.         if( argc != 1)
  18.         {
  19.             printf("MF ColdReboot\nPerform an immediate cold reboot of the system\n");
  20.             printf("USAGE: ColdReboot  (no arguments)\n");
  21.             printf("(equivalent of <CTRL><A><A>)\n\n");
  22.         }
  23.         else
  24.         {
  25.             ColdReboot();  /* No turning back now! */
  26.         }
  27. }
  28.